<script>

export default {
  name: 'View',
  props: {
    editMode: {
      type: Boolean,
      default: false
    },
    selected: {
      type: Boolean,
      default: false
    },
    detail: {
      type: Object,
      default() {
        return {}
      }
    }
  },
  data() {
    return {}
  },
  computed: {
    textAlign: function() {
      if (this.detail.style.textAlign === undefined) {
        return 'center'
      } else {
        return this.detail.style.textAlign
      }
    },
    lineHeight: function() {
      if (this.detail.style.lineHeight === undefined) {
        return this.detail.style.position.h
      }
      return this.detail.style.lineHeight
    }
  },
  methods: {
    refreshData(val, sceneName) {

    },
    onResize() {

    }
  }
}
</script>
